package com.ruoyi.system.service;


import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.system.domain.Withdraw;

import java.math.BigDecimal;


public interface WithdrawService extends BaseService<Withdraw> {
    /**
     * 提交提现申请
     */
    void submitWithdrawal(SysUser user, BigDecimal amount, String address);

    void agentSubmitWithdrawal(SysUser user, BigDecimal amount, String address);

    Long submitRecharge(SysUser user, BigDecimal amount, String address);

    /**
     * 拒绝提现申请
     */
    void cancel(Long id);

    /**
     * 通过提现申请
     */
    void pass(Long id);
}
